import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`${url}`, ...arg)
/**
 * 用户选择器
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
	//模板下载
	template(url, data = {}) {
		return request(url, data, 'get', {
			responseType: 'blob'
		})
	},
	//预览导入
	preview(url, data = {}) {
		return request(url, data)
	},
	// 导入数据
	import(url, data = {}) {
		return request(url, data, 'post', {
			ignoreError: true
		})
	}
}
